﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="acpwFolhaPagamento.aspx.cs" Inherits="Protegidos_Administracao_Cadastros__popup_wf_acpwFolhaPagamento" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register TagPrefix="uc1" TagName="HeadTag"  Src="~/_includes/HeadTag.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <!-- Includes -->
    <uc1:HeadTag ID="HeadTag1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    
        <script type="text/javascript">
            function CancelEdit() {
                GetRadWindow().Close();
            }
            function GetRadWindow() {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz as well)

                return oWindow;
            }
        </script>
        
        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
        <table width="99%" align="right">
        
            <%-- Forma Pagamento - Salario --%>
            <tr>
                <td>
                    <div class="SuTituloVR">Folha de Pagamento</div>
                </td>
            </tr>   
            <tr>
                <td>
                    <table>               
                        <tr>
                            <td style="width: 220px"><span class="textoCZ_12">Selecione a forma de pagamento:</span></td>
                            <td>
                                <telerik:RadComboBox ID="rcbFormaPagamento" runat="server" Skin="Telerik" 
                                    Width="240px" EmptyMessage="Selecione" AllowCustomText="True"
                                    AutoPostBack="True" onselectedindexchanged="rcbFormaPagamento_SelectedIndexChanged">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Único" Value="1" />
                                        <telerik:RadComboBoxItem runat="server" Text="2 Parcelas" Value="2" />
                                    </Items>
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="rcbFormaPagamento"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr> 
            
            
            <%-- Forma Pagamento - Salario - Pagamento Unico --%>
            <div id="dvPagUnico" runat="server">
            <tr>
                <td>
                    <table> 
                        <tr>
                            <td colspan="4"><span class="textoCZ_12B">Pagamento Único</span></td>
                        </tr>  
                        <tr>
                            <td style="width: 30px"><span class="textoCZ_12">Todo </span></td>
                            <td style="width: 80px">
                                <telerik:RadComboBox ID="rcbTpDia1" runat="server" Skin="Telerik" 
                                    Width="70px" EmptyMessage="Selecione" AllowCustomText="True"
                                    AutoPostBack="True" onselectedindexchanged="rcbTpDia1_SelectedIndexChanged">  
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Dia" Value="1" />
                                        <telerik:RadComboBoxItem runat="server" Text="Dia Util" Value="2" />
                                    </Items>                                    
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="rcbTpDia1"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                            <td style="width: 5px"><span class="textoCZ_12">:</span></td>
                            <td style="width: 90px">
                                <telerik:RadComboBox ID="rcbDia1" runat="server" Skin="Telerik" 
                                    Width="70px" EmptyMessage="Selecione" AllowCustomText="True">
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="rcbDia1"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr> 
            </div>
            
            
            
            <%-- Forma Pagamento - Salario - 2X --%>
            <div id="dvPag2" runat="server">
            <tr>
                <td>
                    <table> 
                        <tr>
                            <td colspan="4"><span class="textoCZ_12B">Adiantamento:</span></td>
                            <td colspan="4"><span class="textoCZ_12B">Pagamento Principal:</span></td>
                        </tr>             
                        <tr>
                            <td style="width: 30px"><span class="textoCZ_12">Todo </span></td>
                            <td style="width: 80px">
                                <telerik:RadComboBox ID="rcbTpDia2" runat="server" Skin="Telerik" 
                                    Width="70px" EmptyMessage="Selecione" AllowCustomText="True"
                                    AutoPostBack="True" onselectedindexchanged="rcbTpDia2_SelectedIndexChanged">    
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Dia" Value="1" />
                                        <telerik:RadComboBoxItem runat="server" Text="Dia Util" Value="2" />
                                    </Items>                                    
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator4" ControlToValidate="rcbTpDia2"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                            <td style="width: 5px"><span class="textoCZ_12">:</span></td>
                            <td style="width: 110px">
                                <telerik:RadComboBox ID="rcbDia2" runat="server" Skin="Telerik" 
                                    Width="70px" EmptyMessage="Selecione" AllowCustomText="True">
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator5" ControlToValidate="rcbDia2"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                            
                            <td style="width: 30px"><span class="textoCZ_12">Todo </span></td>
                            <td style="width: 80px">
                                <telerik:RadComboBox ID="rcbTpDia3" runat="server" Skin="Telerik" 
                                    Width="70px" EmptyMessage="Selecione" AllowCustomText="True"
                                    AutoPostBack="True" onselectedindexchanged="rcbTpDia3_SelectedIndexChanged">    
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Dia" Value="1" />
                                        <telerik:RadComboBoxItem runat="server" Text="Dia Util" Value="2" />
                                    </Items>                                    
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator6" ControlToValidate="rcbTpDia3"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                            <td style="width: 5px"><span class="textoCZ_12">:</span></td>
                            <td style="width: 90px">
                                <telerik:RadComboBox ID="rcbDia3" runat="server" Skin="Telerik" 
                                    Width="70px" EmptyMessage="Selecione" AllowCustomText="True">
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator7" ControlToValidate="rcbDia3"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr> 
            </div>
            
            <%-- 13º. Salário --%>                   
            <tr>
                <td>
                    <div class="SuTituloVR">Folha de Pagamento - 13º. Salário</div>
                </td>
            </tr> 
            <tr>
                <td>
                    <table>  
                        <tr>
                            <td colspan="2"><span class="textoCZ_12B">1ª.parcela – mês de Novembro</span></td>
                        </tr>
                        <tr>
                            <td style="width: 220px"><span class="textoCZ_12">Selecione a forma de pagamento:</span></td>
                            <td>
                                <telerik:RadComboBox ID="rcb13P1" runat="server" Skin="Telerik" 
                                    Width="240px" EmptyMessage="Selecione" AllowCustomText="True"
                                    AutoPostBack="True" onselectedindexchanged="rcb13P1_SelectedIndexChanged">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Com a folha de novembro" Value="1" />
                                        <telerik:RadComboBoxItem runat="server" Text="Processamento em separado" Value="2" />
                                    </Items>
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator8" ControlToValidate="rcb13P1"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                        </tr>
                    </table>
                    
                    
                    <%-- 13º. Salário - 1ª.parcela – mês de Novembro --%>  
                    <div id="dv13Parc1" runat="server">
                    <table>       
                        <tr>
                            <td style="width: 30px"><span class="textoCZ_12">Todo </span></td>
                            <td style="width: 80px">
                                <telerik:RadComboBox ID="rcb13P1Forma" runat="server" Skin="Telerik" 
                                    Width="70px" EmptyMessage="Selecione" AllowCustomText="True"
                                    AutoPostBack="True" onselectedindexchanged="rcb13P1Forma_SelectedIndexChanged"> 
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Dia" Value="1" />
                                        <telerik:RadComboBoxItem runat="server" Text="Dia Util" Value="2" />
                                    </Items>                                    
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator9" ControlToValidate="rcb13P1Forma"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                            <td style="width: 5px"><span class="textoCZ_12">:</span></td>
                            <td style="width: 90px">
                                <telerik:RadComboBox ID="rcb13P1Dia" runat="server" Skin="Telerik" 
                                    Width="70px" EmptyMessage="Selecione" AllowCustomText="True">
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator15" ControlToValidate="rcb13P1Dia"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                        </tr>
                    </table>
                    </div>
                    
                    <br />
                    
                    <table>  
                        <tr>
                            <td colspan="2"><span class="textoCZ_12B">2ª.parcela – mês de Dezembro</span></td>
                        </tr>
                        <tr>
                            <td style="width: 220px"><span class="textoCZ_12">Selecione a forma de pagamento:</span></td>
                            <td>
                                <telerik:RadComboBox ID="rcb13P2" runat="server" Skin="Telerik" 
                                    Width="240px" EmptyMessage="Selecione" AllowCustomText="True"
                                    AutoPostBack="True" onselectedindexchanged="rcb13P2_SelectedIndexChanged">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Com a folha de dezembro" Value="1" />
                                        <telerik:RadComboBoxItem runat="server" Text="Processamento em separado" Value="2" />
                                    </Items>
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator10" ControlToValidate="rcb13P2"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                        </tr>
                    </table>
                    
                    <%-- 13º. Salário - 2ª.parcela – mês de Novembro --%>  
                    <div id="dv13Parc2" runat="server">
                    <table>       
                        <tr>
                            <td style="width: 30px"><span class="textoCZ_12">Todo </span></td>
                            <td style="width: 80px">
                                <telerik:RadComboBox ID="rcb13P2Forma" runat="server" Skin="Telerik" 
                                    Width="70px" EmptyMessage="Selecione" AllowCustomText="True"
                                    AutoPostBack="True" onselectedindexchanged="rcb13P2Forma_SelectedIndexChanged">
                                    <Items>
                                        <telerik:RadComboBoxItem runat="server" Text="Dia" Value="1" />
                                        <telerik:RadComboBoxItem runat="server" Text="Dia Util" Value="2" />
                                    </Items>                                    
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator11" ControlToValidate="rcb13P2Forma"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                            <td style="width: 5px"><span class="textoCZ_12">:</span></td>
                            <td style="width: 90px">
                                <telerik:RadComboBox ID="rcb13P2Dia" runat="server" Skin="Telerik" 
                                    Width="70px" EmptyMessage="Selecione" AllowCustomText="True">
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator12" ControlToValidate="rcb13P2Dia"
                                        InitialValue="" ErrorMessage="*" ValidationGroup="1" />
                            </td>
                        </tr>
                    </table>
                    </div>
                    
                </td>
            </tr> 
            <tr>
                <td align="right">
                <br />
                    <asp:Label ID="lblResultado" runat="server" Text=""></asp:Label>&nbsp;&nbsp;
                    <asp:Button ID="btnSalvar" runat="server" Text="Salvar" Width="110px" 
                        ValidationGroup="1" onclick="btnSalvar_Click" />&nbsp;&nbsp;
                    <asp:Button ID="btnLimpar" runat="server" Text="Limpar" Width="110px" 
                        onclick="btnLimpar_Click" />&nbsp;&nbsp;
                    <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" Width="110px" 
                        onclick="btnCancelar_Click" />
                </td>
            </tr>
            
        </table>
    
    </form>
</body>
</html>
